package org.dromara.business.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.business.domain.BusinessInformation;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 信息业务对象 business_information
 *
 * @author zlj
 * @date 2024-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusinessInformation.class, reverseConvertGenerate = false)
public class BusinessInformationBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 分类id
     */
    @NotNull(message = "分类id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long flId;

    /**
     * 0供应 1求购
     */
    @NotBlank(message = "0供应 1求购不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = {AddGroup.class, EditGroup.class})
    private String bt;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String nr;

    /**
     * 图片
     */
    @NotBlank(message = "图片不能为空", groups = {AddGroup.class, EditGroup.class})
    private String photo;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dz;

    /**
     * 身份
     */
    @NotBlank(message = "身份不能为空", groups = {AddGroup.class, EditGroup.class})
    private String sf;

    /**
     * 联系人姓名
     */
    @NotBlank(message = "联系人姓名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String lxrXm;

    /**
     * 联系人电话
     */
    @NotBlank(message = "联系人电话不能为空", groups = {AddGroup.class, EditGroup.class})
    private String lxrDh;

    /**
     * 审核状态 0未审核 1待审核 2审核通过 3审核未通过
     */
    @NotBlank(message = "审核状态 0未审核 1待审核 2审核通过 3审核未通过不能为空", groups = {AddGroup.class, EditGroup.class})
    private String shzt;

    /**
     * 审核理由
     */
    @NotBlank(message = "审核理由不能为空", groups = {AddGroup.class, EditGroup.class})
    private String shly;

    /**
     * 发布人id
     */
    @NotNull(message = "发布人id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 性别:1:男 2:女 3:保密
     */
    @NotNull(message = "性别不能为空", groups = {AddGroup.class, EditGroup.class})

    private String gender;
    /**
     * 微信号
     */
    private String wechat;
    /**
     * 目的省
     */
    @NotNull(message = "目的省不能为空", groups = {AddGroup.class, EditGroup.class})

    private String destinationProvince;
    /**
     * 目的市
     */
    @NotNull(message = "目的市不能为空", groups = {AddGroup.class, EditGroup.class})

    private String destinationCity;
    /**
     * 目的区
     */
    @NotNull(message = "目的区不能为空", groups = {AddGroup.class, EditGroup.class})
    private String destinationDistricts;
    /**
     * 出发时间
     */
    @NotNull(message = "出发时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private String departureTime;
    /**
     * 目的地址
     */
    private String destinationAddress;

    /*    状态 1:上架 2下架*/
    private String state;
    /**
     * 车辆类型
     */
    private String vehicleType;
    @NotNull(message = "空位数不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer digit;

    // 是否匿名
    private Long sfnm;

    private String province;
    private String city;
    private String districts;
    // 最新，最近
    private String px;

    private String lxNameYj;
    private String lxNameEj;
    //工资待遇
    private String money;

    /**
     * 地点名称
     */
    private String locationsName;


}
